﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using WooCoo.Data;

namespace WooCoo.Portal.Data
{
    [Export("WooCoo.Portal.Contracts", typeof(IDataContextInfo))]
    public class SupportDbContextInfo:IDataContextInfo
    {
        public SupportDbContextInfo()
        {
#if DEBUG
            WooCooInitializeDatabase.InitDatabase();
#endif
        }
        public Type DataContextType
        {
            get { return typeof(SupportDbContext); }
        }

        public string Name
        {
            get { return "WooCoo.Portal.Contracts"; }
        }
        public string ConnectionName
        {
            get
            {
                return "";
            }            
        }
    }
}
